Exam question from Coordinate Geometry